

package com.dog.basics.bean.dto.admin.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author guonh
 * @since 2017-10-29
 */
@Data
public class AdminSysUserEditInfoDto {

    /**
     * 用户名(登录名)
     */
    @ApiModelProperty(value = "用户名(登录名)(50)", dataType = "String", required = false, hidden = true)
    private String username;

    /**
     * 用户真实名称
     */
    @NotBlank(message = "用户真实名称不能为空")
    @ApiModelProperty(value = "用户真实名称(50)", dataType = "String", required = true)
    @Size(min = 1, max = 50, message = "用户真实名称长度 1-50")
    private String name;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码(20)", dataType = "String", required = true)
    @Size(min = 1, max = 20, message = "密码长度 1-20")
    private String password;
    /**
     * 新密码
     */

    @ApiModelProperty(value = "新密码(20)", dataType = "String", required = false)
    private String newpassword1;

    /**
     * 图片信息
     */
    @ApiModelProperty(value = "图片信息",dataType = "Long",required = false)
    private Long fileId;
}
